home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / Acere (Card Game) / AcereÄ.sit / Acereƒ / CardWell.h < prev    next >
Text File  |  1994-08-24  |  1KB  |  57 lines

  1. // ===========================================================================
  2. //    LPane.h                            ⌐1993 Metrowerks Inc. All rights reserved.
  3. // ===========================================================================
  4.  
  5. #pragma once
  6.  
  7. #include <LAttachable.h>
  8.  
  9. #ifndef __EVENTS__
  10. #include <Events.h>
  11. #endif
  12.  
  13. #include <LPane.h>
  14. class    LStream;
  15.  
  16. #include "CardDeck.h"
  17.  
  18. #if defined(powerc) || defined(__powerc)
  19. #pragma options align=reset
  20. #endif
  21.  
  22. #define                kNoCard        -1
  23.  
  24. class CardWell : public LPane
  25. {
  26.  
  27. public:
  28.     CardStruct        itsCard;
  29.     
  30.     
  31.     static CardWell*    CreateCardWell(LStream *inStream);
  32.     
  33.                     CardWell();
  34.                     CardWell(const CardWell &inOriginal);        
  35.                     CardWell(const SPaneInfo &inPaneInfo);
  36.                     CardWell(LStream *inStream);
  37.                     
  38.     virtual void    InitPane(const SPaneInfo    &inPaneInfo);
  39.     
  40.     virtual            ~CardWell();
  41.  
  42.         // Ñ Drawing
  43.     
  44.     virtual void    Draw(RgnHandle inSuperDrawRgnH);
  45.     
  46.     virtual Boolean    CanRemove(void);
  47.  
  48.     virtual    Boolean    CanDrop(CardStruct *draggedCard);
  49.     virtual    Boolean    CanDropOnEmptySlot(CardStruct *draggedCard);
  50.     virtual    Boolean    CanDropOnSlot(CardStruct *draggedCard);
  51.     
  52.     virtual    void    AddCardToWell(CardWell *whichWell, CardStruct *whichCard);
  53.     virtual void    RemoveCardFromWell(CardWell *whichWell, CardStruct *whichCard);
  54.     
  55.     virtual    void    Click(SMouseDownEvent &inMouseDown);
  56. };
  57.